$(document).ready(function () {
    cart()
})

function cart(){
    console.log('cartTmp ready')
    $.ajax({
        type: 'get',
        url: "/cart/checkAmount",
        async: true,
        success: function (result) {
            console.log('check cart amount: ' + result)
            if (result > 0) {
                // $('#cartTmp').after("<span class=\"dot dot-md bg-success\"></span>")
                $('#cartTmp').css('display','inline-block')
            }
        }
    });
}

